﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GamePlusClassLibrary;

namespace GamePlus.UserControls
{
    public partial class mod_new_games : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                loadContent();
        }

        private void loadContent()
        {
            //List<games> ls = games.ListNew(9);

            //string sContent = string.Empty;
            //sContent += "<ul class=\"glistver\">";

            //ls.ForEach(delegate(games obj) { 
            //    sContent += "<li>";
            //    sContent += "<a href=\"/game/"+ obj._ID.ToString() +"\" class=\"bdc5 item\">";
            //    sContent += "<img class=\"img bdc2\" src=\"http://www.otzee.com.br/images/games/000/000/" + obj._ID.ToString() + "/spotlight_normal.jpg\" alt=\"\">";
            //    sContent += "<strong class=\"clr5\">"+ obj._name +"</strong>";
            //    sContent += "<span class=\"dtdesc\">"+ ((obj._highlight.Length > 70) ? obj._highlight.Substring(0,70) + " ..." : obj._highlight) + 
            //    "</span>";
            //    sContent += "</a></li>";
            //});

            //sContent += "</ul>";

            //divNovidades.InnerHtml = sContent;
        }
    }
}